package com.example.medical.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    /**
     * 科员主键
     */
    @TableId(value = "user_id",type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    /**
     * 科员账号
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 科员密码
     */
    @TableField(value = "user_password")
    private String userPassword;

    /**
     * 科员原密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 科员姓名
     */
    @TableField(value = "user_nick")
    private String userNick;

    /**
     * 科员电话
     */
    @TableField(value = "user_phone")
    private Long userPhone;

    /**
     * 科员身份证
     */
    @TableField(value = "user_number")
    private Long userNumber;

    /**
     * 科员头像路径
     */
    @TableField(value = "user_img_url")
    private String userImgUrl;

    /**
     * 科员性别：
0：男
1：女
2：未知
     */
    @TableField(value = "user_sex")
    private Integer userSex;

    /**
     * 科员科室
     */
    @TableField(value = "user_division_name")
    private String userDivisionName;

    /**
     * 科员邮箱
     */
    @TableField(value = "user_email")
    private String userEmail;

    /**
     * 科员科室主键
     */
    @TableField(value = "user_division_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userDivisionId;

    /**
     * 科员添加时间
     */
    @TableField(value = "save_time")
    private String saveTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}